package Java0107;

import java.util.Map;
import java.util.TreeMap;

public class Java06 {
    public static void main(String[] args) {
        //6 map集合 ：TreeMap
        Map<Integer, String> map = new TreeMap<Integer, String>();
        map.put(2, "A");
        map.put(1, "B");
        map.put(3, "C");
        map.forEach((k,v)->{
            System.out.println(k  + "\t" + v);
        });
    }
}
